home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
NextAnswers
/
1409_scrolling_Cell_alignment.rtf
< prev
next >
Wrap
Text File
|
1993-11-08
|
2KB
|
47 lines
{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
\paperw12740
\paperh8500
\margl120
\margr120
{\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:
\fc1\cf1 When I use the Action Cell method
\f1\fs24 setAlignment:
\f0\fs28 in conjunction with the Cell method
\f1\fs24 setScrollable
\f0\fs28 :, I experience some inconsistent behavior. If I have called
\f1\fs24 [myTextCell
\f0\fs28
\f1\fs24 setAlignment:NX_CENTERED]
\f0\fs28 and
\f1\fs24 [myTextCell setScrollable:YES]
\f0\fs28 , the display does not update in the cell. However, when the TextFieldCell is sent
\f1\fs24 [myTextCell setScrollable:NO]
\f0\fs28 , then the display works fine.\
\i \
\i0 A: The Text Object does not support scrolling for centered or right-justified text. To get proper display, you have to disable scrolling with
\f1\fs24 [myTextCell
\f0\fs28
\f1\fs24 setScrollable:NO]
\f0\fs28 when using the method
\f1\fs24 setAlignment
\f0\fs28 : with the values
\f1\fs24 NX_CENTERED
\f0\fs28 or
\f1\fs24 NX_RIGHTALIGNED
\f0\fs28 . If your text is left-justified, scrolling will work fine, i.e. you can use
\f1\fs24 [myTextCell setAlignment:NX_LEFTALIGNED]
\f0\fs28 with
\f1\fs24 [myTextCell setScrollable:YES]
\f0\fs28 .
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc1\cf1 \
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
Valid for 1.0, 2.0, 3.0\
\
QA682\
\